package com.zhl.scheduling.model.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: ZhangLu In DLUT
 * @since: 1.0.0
 * @Description: 封装的用户查询条件实体类
 */
@ApiModel(value = "UsersListQueryBO对象",description = "封装查询用户列表的条件对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UsersListQueryBO {

    @ApiModelProperty(dataType = "int",required = true, value = "用户ID")
    private Integer userId;

    @ApiModelProperty(dataType = "string",required = true, value = "用户姓名")
    private String username;

    @ApiModelProperty(dataType = "int",required = true, value = "用户身份证号")
    private String userIdCard;

    @ApiModelProperty(dataType = "int",required = true, value = "用户部门")
    private Integer userDepartmentId;

    @ApiModelProperty(dataType = "int",required = true, value = "用户状态")
    private Integer userStatus;

    @ApiModelProperty(dataType = "int",required = true, value = "用户角色")
    private Integer userRole;

    @ApiModelProperty(dataType = "int",required = true, value = "页码")
    private int page = 1;

    @ApiModelProperty(dataType = "int",required = true, value = "每页条数")
    private int limit = 5;

    @ApiModelProperty(dataType = "string",required = true, value = "排序方式，如：'workpieceId desc' ")
    private String orderBy;
}
